﻿package character {
	
	public class Ninja extends Character{

		public function Ninja() {
			// constructor code
			super();
			MAX_HP=200;
			MAX_SPEED = 20;
			physicalCore.friction = 4;
			attackMoves = new Array(3);
			attackMoves[0] = new AMFarSlice(7,5,this);
			attackMoves[1] = new AMQuickSlice(8,5,this);
			attackMoves[2] = new AMFarSlice(7,6,this);
			
			this.speed = 7;
		}
		
		public function Attack():AttackMove
		{
			if(currentFrame == FRAME_RUN)
			{
				return UseAttackMove(0);
			}
			else
			{
				return UseAttackMove(1);
			}
			return null;
		}
	}
	
}
